import allRoutes from "./generateRoutes"
// console.log(allRoutes);
let homeRoute = allRoutes.find(item => item.path === '/home')
let paymentRoute = homeRoute.children.find(item => item.path === 'payment')
let preorderRoute = homeRoute.children.find(item => item.path === 'preorder')
// console.log(paymentRoute);
// console.log(preorderRoute);

//目的 以前访问/home能够访问到布局组件 现在希望访问 / 就能访问到布局组件
let dynamicRoute = {
    path: "/",
    children: [paymentRoute,preorderRoute],
    component: () => import(/*webpackChunkName:'layout'*/"@/layout/container.vue")
}

export default dynamicRoute